/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.common.schedule.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 定时任务Entity
 * @author jyangye
 * @version 2017-10-27
 */
public class SysScheduleJob extends DataEntity<SysScheduleJob> {
	
	private static final long serialVersionUID = 1L;
	private String jobName;		// 任务名称
	private String jobStatus;		// 任务状态
	private String cronExpression;		// 时间表达式
	private String concurrent;		// 并发启动
	private String description;		// 任务描述
	private String jobGroup;		// 任务所属组
	private String targetObject;		// 任务的类
	private String targetMethod;		// 类中的方法
	private String isSpringBean;		// 为Spring的Bean
	private String clazz;		// 全类名
	private String childJobs;		// 子任务
	
	public SysScheduleJob() {
		super();
	}

	public SysScheduleJob(String id){
		super(id);
	}

	@Length(min=1, max=32, message="任务名称长度必须介于 1 和 32 之间")
	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	
	@Length(min=1, max=4, message="任务状态长度必须介于 1 和 4 之间")
	public String getJobStatus() {
		return jobStatus;
	}

	public void setJobStatus(String jobStatus) {
		this.jobStatus = jobStatus;
	}
	
	@Length(min=1, max=32, message="时间表达式长度必须介于 1 和 32 之间")
	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}
	
	@Length(min=1, max=4, message="并发启动长度必须介于 1 和 4 之间")
	public String getConcurrent() {
		return concurrent;
	}

	public void setConcurrent(String concurrent) {
		this.concurrent = concurrent;
	}
	
	@Length(min=0, max=256, message="任务描述长度必须介于 0 和 256 之间")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Length(min=1, max=32, message="任务所属组长度必须介于 1 和 32 之间")
	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}
	
	@Length(min=0, max=32, message="任务的类长度必须介于 0 和 32 之间")
	public String getTargetObject() {
		return targetObject;
	}

	public void setTargetObject(String targetObject) {
		this.targetObject = targetObject;
	}
	
	@Length(min=0, max=32, message="类中的方法长度必须介于 0 和 32 之间")
	public String getTargetMethod() {
		return targetMethod;
	}

	public void setTargetMethod(String targetMethod) {
		this.targetMethod = targetMethod;
	}
	
	@Length(min=1, max=4, message="为Spring的Bean长度必须介于 1 和 4 之间")
	public String getIsSpringBean() {
		return isSpringBean;
	}

	public void setIsSpringBean(String isSpringBean) {
		this.isSpringBean = isSpringBean;
	}
	
	@Length(min=0, max=128, message="全类名长度必须介于 0 和 128 之间")
	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	
	@Length(min=0, max=512, message="子任务长度必须介于 0 和 512 之间")
	public String getChildJobs() {
		return childJobs;
	}

	public void setChildJobs(String childJobs) {
		this.childJobs = childJobs;
	}
	
}